﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Flow_NewFlowList.aspx.cs"
    Inherits="admin_Flow_BackManage_Flow_NewFlowList" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>无标题页</title>
    <link rel="Stylesheet" type="text/css" href="../../Styles/right_style.css" />
    <script type="text/javascript" src="../../Scripts/jquery.ui/js/jquery.js"></script>
    <style type="text/css">
            <!--
            html{ scrollbar-base-color: #dbecf8; scrollbar-arrow-color: #2a8ed1; scrollbar-track-color: #bdddf2; scrollbar-3dlight-color: #2886c5; scrollbar-darkshadow-color: #2886c5;
            scrollbar-face-color: #dbecf8; scrollbar-shadow-color: #dbecf8;  }
            -->
        </style>
</head>
<body>
    <form id="form1" runat="server">
    <div class="sub_right_top">
        <div class="hdm_footer">
            <div style="height: 13px; overflow: hidden;">
            </div>
            <table width="97%" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#77acd0"
                bgcolor="#f7fcff" style="border-collapse: collapse;">
                <tr bgcolor="#b1d5ef">
                    <td>
                        <span class="new_name_word">新建流程</span><span class="new_button_img">
                            <asp:ImageButton ID="ImageButton1" runat="server" PostBackUrl="~/admin/Flow_BackManage/AddNewFlow.aspx"
                                ImageUrl="~/images/new_liucheng.gif" />
                        </span>
                    </td>
                </tr>
            </table>
            <div style="height: 15px; overflow: hidden;">
            </div>
            <asp:DataList ID="DataList1" runat="server" DataSourceID="FlowTypeDataSource" DataKeyField="Id"
                OnItemDataBound="DataList1_ItemDataBound" Width="99%">
                <ItemTemplate>
                    <div class="workflow_line">
                        <div>
                            <div class="workflow_line_title">
                                <%#Eval("flow_name") %>
                            </div>
                            <div class="workflow_line_top">
                                <div class="r1">
                                </div>
                                <div class="r2">
                                </div>
                                <div class="r3">
                                </div>
                                <div class="r4">
                                </div>
                            </div>
                        </div>
                        <div class="workflow_line_content">
                            <asp:GridView ID="GridView1" runat="server" BorderColor="#77ACD0" HorizontalAlign="Center"
                                BorderWidth="1px" GridLines="Horizontal" AutoGenerateColumns="False" Width="100%"
                                OnRowCommand="GridView1_RowCommand">
                                <Columns>
                                    <asp:BoundField DataField="NewFlow_sort" HeaderText="序号" SortExpression="NewFlow_sort">
                                        <HeaderStyle CssClass="itemhead" />
                                    </asp:BoundField>
                                    <asp:BoundField DataField="NewFlow_name" HeaderText="名称" SortExpression="NewFlow_name">
                                        <HeaderStyle CssClass="itemhead" />
                                    </asp:BoundField>
                                    <asp:TemplateField HeaderText="类型" SortExpression="NewFlow_type">
                                        <EditItemTemplate>
                                            <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("NewFlow_type") %>'></asp:TextBox>
                                        </EditItemTemplate>
                                        <ItemTemplate>
                                            <asp:Label ID="Label1" runat="server" Text='<%# Convert.ToInt32(Eval("NewFlow_type"))==1?"固定":"自由" %>'></asp:Label>
                                        </ItemTemplate>
                                        <HeaderStyle CssClass="itemhead" />
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="表单">
                                        <EditItemTemplate>
                                            <asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
                                        </EditItemTemplate>
                                        <ItemTemplate>
                                            <asp:LinkButton ID="LinkButton1" runat="server" CommandArgument='<%# Eval("Flow_Form.Id") %>'
                                                Text='<%# Eval("Flow_Form.Form_name") %>' CommandName="showForm"></asp:LinkButton>
                                        </ItemTemplate>
                                        <HeaderStyle CssClass="itemhead" />
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="附件" SortExpression="Allow_affixFile">
                                        <EditItemTemplate>
                                            <asp:TextBox ID="TextBox3" runat="server" Text='<%# Bind("Allow_affixFile") %>'></asp:TextBox>
                                        </EditItemTemplate>
                                        <ItemTemplate>
                                            <asp:Label ID="Label3" runat="server" Text='<%# Convert.ToInt32(Eval("Allow_affixFile"))==1?"允许":"不允许" %>'></asp:Label>
                                        </ItemTemplate>
                                        <HeaderStyle CssClass="itemhead" />
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="编辑该流程的各项属性">
                                        <ItemTemplate>
                                            <asp:LinkButton ID="LinkButton5" runat="server" CommandArgument='<%# Eval("NewFlowl_id") %>'
                                                CommandName="updateFlow">基本属性</asp:LinkButton>
                                            <asp:LinkButton ID="LinkButton6" runat="server" CommandArgument='<%# Eval("NewFlowl_id") %>'
                                                CommandName="updateFlowManager">监控人员</asp:LinkButton>
                                            <asp:LinkButton ID="LinkButton7" runat="server" CommandArgument='<%# Eval("NewFlowl_id") %>'
                                                CommandName="showFlowStep">流程步骤</asp:LinkButton>
                                        </ItemTemplate>
                                        <HeaderStyle CssClass="itemhead" />
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="管理">
                                        <ItemTemplate>
                                            <asp:LinkButton ID="LinkButton2" runat="server" CommandArgument='<%# Eval("NewFlowl_id") %>'
                                                CommandName="copyFlow">客隆</asp:LinkButton>
                                            <asp:LinkButton ID="LinkButton3" runat="server" CommandArgument='<%# Eval("NewFlowl_id") %>'
                                                CommandName="clearFlowWorks" OnClientClick="return confirm('确认要清空依托于该流程的所有工作数据么？')">清空</asp:LinkButton>
                                            <asp:LinkButton ID="LinkButton4" runat="server" CommandArgument='<%# Eval("NewFlowl_id") %>'
                                                CommandName="delFlow" OnClientClick="return confirm('确认删除？')">删除</asp:LinkButton>
                                        </ItemTemplate>
                                        <HeaderStyle CssClass="itemhead" />
                                    </asp:TemplateField>
                                </Columns>
                                <FooterStyle BackColor="#B5C7DE" ForeColor="#4A3C8C" />
                                <RowStyle BackColor="Transparent" ForeColor="Black" HorizontalAlign="Center" />
                                <SelectedRowStyle BackColor="#738A9C" Font-Bold="True" ForeColor="#F7F7F7" />
                                <PagerStyle BackColor="#E4F1FD" ForeColor="#1E5494" HorizontalAlign="Right" />
                                <HeaderStyle BackColor="#E4F1FD" ForeColor="#1E5494" BorderColor="#77ACD0" HorizontalAlign="Center" />
                                <AlternatingRowStyle BackColor="#E4F1FD" />
                            </asp:GridView>
                            <asp:HiddenField ID="HiddenField1" runat="server" Value='<%# Eval("Id") %>' />
                        </div>
                        <div class="workflow_line_bot">
                            <div class="r4">
                            </div>
                            <div class="r3">
                            </div>
                            <div class="r2">
                            </div>
                            <div class="r1">
                            </div>
                        </div>
                    </div>
                    <div style="height: 15px; overflow: hidden;">
                    </div>
                </ItemTemplate>
            </asp:DataList>
        </div>
    </div>
    <asp:ObjectDataSource ID="FlowTypeDataSource" runat="server" SelectMethod="FindAllTypes"
        TypeName="TarreOA.TarreOABLL.Flow_Type_Service"></asp:ObjectDataSource>
    &nbsp;
    </form>
</body>
</html>
